//
//  PickNumSportItemCell.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-13.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddPickNumSportItemCell.h"

@implementation JddPickNumSportItemCell
GET_INSTANCE_VIEW_IMPLEMENT(JddPickNumSportItemCell)

@synthesize delegate;
@synthesize Rq;
@synthesize Win;
@synthesize Lose;
@synthesize Drew;
@synthesize weakNum;
@synthesize MID;
@synthesize Match;
@synthesize EndTime;
@synthesize HTeam;
@synthesize VTeam;
@synthesize slabel;
@synthesize plabel;
@synthesize flabel;
@synthesize cSportNumber;
@synthesize aSportNumber;
@synthesize bSportNumber;
@synthesize endtime;
@synthesize vs;
@synthesize label_isSingle;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}
- (void)awakeFromNib
{
    self.Win.layer.borderColor = BORDER_COLOR;
    self.Win.layer.borderWidth = 0.5;
    
    self.Drew.layer.borderColor = BORDER_COLOR;
    self.Drew.layer.borderWidth = 0.5;
    
    self.Lose.layer.borderColor = BORDER_COLOR;
    self.Lose.layer.borderWidth = 0.5;
}

-(IBAction)TeamButtonClicked:(id)sender{
    self.aSportNumber.teamArray= [[NSMutableArray alloc] initWithObjects:@"3", nil];
    [self.delegate performSelector:@selector(sportTeamButtonClicked:number:) withObject:(id)sender withObject:aSportNumber];
}

-(IBAction)Team2ButtonClicked:(id)sender{
    self.bSportNumber.teamArray= [[NSMutableArray alloc] initWithObjects:@"1", nil];
    [self.delegate performSelector:@selector(sportTeamButtonClicked:number:) withObject:(id)sender withObject:bSportNumber];
}

-(IBAction)Team3ButtonClicked:(id)sender{
    self.cSportNumber.teamArray= [[NSMutableArray alloc] initWithObjects:@"0", nil];
    [self.delegate performSelector:@selector(sportTeamButtonClicked:number:) withObject:(id)sender withObject:cSportNumber];
}
//- (void)drawRect:(CGRect)rect
//{
//    [super drawRect:rect];
//    
//    CGContextRef context = UIGraphicsGetCurrentContext();
//    CGContextSetLineWidth(context, .5);
//    CGContextSetStrokeColorWithColor(context, [UIColor grayColor].CGColor);
//    
//    CGContextMoveToPoint(context, 0, rect.size.height/2);
//    CGContextAddLineToPoint(context, rect.size.width, rect.size.height);
//    CGContextClosePath(context);
//    CGContextStrokePath(context);
//}
@end
